package com.itheima.mybytestream;

public class Worker extends Person{
    private int salary;

    public int getSalary() {
        return salary;
    }

    public void setSalary(int salary) {
        this.salary = salary;
    }

    @Override
    public void getContent() {

    }

    public String toString() {
        return "Worker{salary = " + salary + "}";
    }
}
